<template>
  <div>
       <!-- 头部导航 -->
      <div class="header">
        <div class="left iconfont icon-denglu" @click="$router.push('/login').catch(()=>{})"></div>
        <div class="center">TIAN-MUSIC</div>
        <div class="right iconfont icon-sousuo" @click="$router.push('/search').catch(()=>{})"></div>
      </div>
      <!-- 导航按钮 -->
      <div class="navs">
        <router-link tag="div" to="/recommend" class="item">
            <span>推荐</span>
        </router-link>
        <router-link tag="div" to="/rank" class="item">
            <span>排行榜</span>
        </router-link>
        <router-link tag="div" to="/singer" class="item">
            <span>歌手</span>
        </router-link>   
      </div>

      <!-- 底部 -->
      
  </div>
</template>

<script>
export default {

}
</script>

<style lang="less">
.header{
  background-color: #e2bdb4;
  color:#fff;
  height: 39px;
  line-height: 39px;
  display: flex;
  text-align: center;
  .left,.right{
    flex:0 0 40px;
    font-size:18px;
  }
  .center{
    flex:1;
    padding: 0px;
    // margin-top: -18px;
  }
}
.navs{
  height: 40px;
  line-height: 40px;
  display: flex;
  background-color: #e2bdb4;
  color:#fff;
  .item{
    flex:1;
    text-align: center;
    font-size: 14px;
      span{
        display: inline-block;
        height: 21px;
        line-height: 21px;
        border-bottom: 1px solid transparent;
      }
      &.router-link-active span{
        border-color: #fff;
        font-weight: bold;
      }
  }

}
</style>